package com.wisdomparking.service;

import java.util.List;
import java.util.Map;

import com.wisdomparking.bean.Manager;

public interface ManagerService {
	/**
	 * 添加
	 * @param en
	 * @param sign
	 * @return boolean
	 */
	public boolean addManager(Manager en, boolean sign);
	
	/**
	 * 修改
	 * @param en
	 * @param sign
	 * @return boolean
	 */
	public boolean updateManager(Manager en, boolean sign);
	
	/**
	 * 删除
	 * @param id
	 * @return boolean
	 */
	public boolean deleteManagerById(Integer id);
	
	/**
	 * 查询
	 * @param id
	 * @return Manager
	 */
	public Manager getManager(Integer id);
	
	/**
	 * 查询
	 * @param userName
	 * @return
	 */
	public Manager getManagerByUserName(String userName);
	
	/**
	 * 查询
	 * @param mobile
	 * @return
	 */
	public Manager getManagerByMobile(String mobile);

	
	/**
	 * 获取对象列表
	 * @param map
	 * @return
	 */
	public List<Manager> getManagerList(Map<String, Object> map);
	
	/**
	 * 获取记录总条数
	 * @param map
	 * @return long
	 */
	public long getCountByManager(Map<String, Object> map);
}
